const mongoose = require('./db')
var Schema = mongoose.Schema
//主页婚纱套餐表
const packageSchema = new Schema({
    title: String,
    img:String,
    price:Number,
    sort:String,
    store:{
        type:mongoose.Types.ObjectId,
        ref:"store"
    }
}, {versionKey: false})
const packageModel = mongoose.model('package', packageSchema, 'package')
//店铺表
const storeSchema = new Schema({
    avatar: String,
    name:String
}, {versionKey: false})
const storeModel = mongoose.model('store', storeSchema, 'store')
// storeModel.create({ 
//     avatar: "https://qnm.hunliji.com/FqQVL5YF7qPffH_X9Tf-Uxuel2H3?imageMogr2/auto-orient/crop/!400x400a0a0|imageView2/2/w/600/h/600/format/jpg/interlace/1",
//     name:"百合婚礼策划"
// },
// { 
//     avatar: "https://qnm.hunliji.com/2D5D47CACD2CA67A25E9E3925B63C50B.jpg?imageView2/2/w/600/h/600/format/jpg/interlace/1",
//     name:"苏菲雅美学摄影"
// },
// { 
//     avatar: "https://qnm.hunliji.com/FjzBfBjNWLCnARgLSMFfeld7dg3-?imageView2/2/w/600/h/600/interlace/1",
//     name:"白灵婚礼策划"
// },
// { 
//     avatar: "https://qnm.hunliji.com/7E40B062CEBB851B7AC12DBF28178B9A?imageView2/2/w/600/h/600/interlace/1",
//     name:"乐美婚礼策划"
// })

// packageModel.create({ 
//     title: "2023超梦幻的光影主纱婚纱照少女心爆棚",
//     img:"https://qnm.hunliji.com/aa02deb5bce286baabfec265e186fec4?imageView2/1/w/342/h/456/format/jpg/interlace/1",
//     price:399999,
//     sort:"婚纱",
//     store:"64014a5839ae7c9fe1a457c8"
// },{ 
//     title: "女王的婚纱《气质款》高级",
//     img:"https://qnm.hunliji.com/Fi3w4YoTnz0kP0vQLQgWpP5fbFpI?imageView2/1/w/342/h/456/format/jpg/interlace/1",
//     price:599999,
//     sort:"婚纱",
//     store:"64014a5839ae7c9fe1a457c8"
// },{ 
//     title: "《绸缎红》精致刺绣",
//     img:"https://qnm.hunliji.com/FoqMRFvU0N9tYF9Uxjj-U_ntjopd?imageView2/1/w/342/h/456/interlace/1",
//     price:199999,
//     sort:"婚纱",
//     store:"64014a5839ae7c9fe1a457c8"
// },{ 
//     title: "店长推荐《檐》",
//     img:"https://qnm.hunliji.com/72e6f07ea74682e749cd9e0902b442d6?imageView2/1/w/598/h/374/format/jpg/interlace/1",
//     price:499999,
//     sort:"婚庆",
//     store:"64014a5839ae7c9fe1a457cb"
// },{ 
//     title: "店长推荐《檐》",
//     img:"https://qnm.hunliji.com/72e6f07ea74682e749cd9e0902b442d6?imageView2/1/w/598/h/374/format/jpg/interlace/1",
//     price:499999,
//     sort:"婚庆",
//     store:"64014a5839ae7c9fe1a457cb"
// },{ 
//     title: "店长推荐《玫瑰计划》",
//     img:"https://qnm.hunliji.com/c92c2c61cbd0bf8b201dd5589f326a43?imageView2/1/w/342/h/214/format/jpg/interlace/1",
//     price:799999,
//     sort:"婚庆",
//     store:"64014a5839ae7c9fe1a457cb"
// },{ 
//     title: "店长推荐《GARDEN》",
//     img:"https://qnm.hunliji.com/529ba33c203df91dc33a003f08e7f0a3?imageView2/1/w/342/h/214/format/jpg/interlace/1",
//     price:769999,
//     sort:"婚庆",
//     store:"64014a5839ae7c9fe1a457cb"
// },{ 
//     title: "广州婚宴酒席价目表",
//     img:"https://qnm.hunliji.com/o_1fjkshn711sco1i281od7dees069.png?imageView2/1/w/170/h/170",
//     price:3000,
//     sort:"婚宴",
//     store:"64014a5839ae7c9fe1a457ca"
// },{ 
//     title: "天津婚宴酒席价目表",
//     img:"https://qnm.hunliji.com/o_1cdhka3f884e1deato51q9612ig34.jpg?imageView2/1/w/170/h/170",
//     price:4000,
//     sort:"婚宴",
//     store:"64014a5839ae7c9fe1a457ca"
// })

module.exports = {packageModel,storeModel}

